Skip to main content

Get Statement Analysis

POST https://api.manka.tz/api/v1/analysis/3d

This analyses the pdf and generates the report. The response is in a json format.

Header Requirements

  • Authorizaion --required

Body Params

  • file --required
  • fullname --required
curl example request
curl -X 'POST' 'https://api.manka.tz/api/v1/analysis/3d'
-F fullname=Hussein \
-F 'file=@AirtelMoney_7876543_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \

Response Sample

  1. Status OK Response
200 OK
{
"analysis_period": {
"start_date": "October_2023",
"end_date": "November_2023"
},
"cash_flow_analysis": {
"cash_inflow": [
{
"month": "October_2023",
"amount": 36949.0,
"percentage": 43.73
},
{
"month": "November_2023",
"amount": 47540.0,
"percentage": 56.27
}
],
"cash_outflow": [
{
"month": "October_2023",
"amount": 35920.0,
"percentage": 42.49
},
{
"month": "November_2023",
"amount": 48620.0,
"percentage": 57.51
}
]
},
"agent_activity_analysis": {
"agent_withdrawal": [
{
"month": "October_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "November_2023",
"amount": 0.0,
"percentage": 0.0
}
],
"agent_deposit": [
{
"month": "October_2023",
"amount": 32000.0,
"percentage": 43.24
},
{
"month": "November_2023",
"amount": 42000.0,
"percentage": 56.76
}
]
},
"peer_to_peer_activity_analysis": {
"p2p_sent": [
{
"month": "October_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "November_2023",
"amount": 0.0,
"percentage": 0.0
}
],
"p2p_received": [
{
"month": "October_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "November_2023",
"amount": 0.0,
"percentage": 0.0
}
]
},
"bank_activity_analysis": {
"wallet_to_bank": [
{
"month": "October_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "November_2023",
"amount": 0.0,
"percentage": 0.0
}
],
"bank_to_wallet": [
{
"month": "October_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "November_2023",
"amount": 0.0,
"percentage": 0.0
}
]
},
"loan_activity_analysis": {
"kamilisha": [
{
"month": "October_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "November_2023",
"amount": 0.0,
"percentage": 0.0
}
]
},
"bills_activity_analysis": {
"bill_payment": [
{
"month": "October_2023",
"amount": 30920.0,
"percentage": 43.65
},
{
"month": "November_2023",
"amount": 39920.0,
"percentage": 56.35
}
],
"luku": [
{
"month": "October_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "November_2023",
"amount": 0.0,
"percentage": 0.0
}
],
"gepg": [
{
"month": "October_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "November_2023",
"amount": 0.0,
"percentage": 0.0
}
]
},
"other_analysis": {
"other": [
{
"month": "October_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "November_2023",
"amount": 0.0,
"percentage": 0.0
}
]
}
}